<?php
include 'logincheck.php';
$id = $_POST['id'];

include 'connect.php';

mysql_select_db($db, $con);
$sqlQuery = "DELETE FROM {$table} WHERE ID = {$id}";
$retval = mysql_query($sqlQuery);
if(! $retval )
	{
		die('Could not delete...' . mysql_error());
	}
mysql_close($con);
?>